<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/member/member/member.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return'<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>会员管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>会员详情</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">会员详情</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmMember">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">微信头像：</label>
                            <div class="col-sm-8">
                                <div id="">
                                    <c:choose>
                                        <c:when test="${memberInfo.headImg!=null && memberInfo.headImg!=''}">
                                            <div id="">
                                                <img src="${memberInfo.headImg}"
                                                     width="155px" height="120px">
                                            </div>
                                        </c:when>
                                        <c:otherwise>
                                            <div id="">
                                                <img src="${ctx}/statics/img/upload-img.png"
                                                     style="position: relative" width="155px" height="120px">
                                            </div>
                                        </c:otherwise>
                                    </c:choose>
                                </div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">用户ID：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="memberId" id="memberId"
                                       value="${memberInfo.memberId}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">手机号：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" readonly
                                       value="${memberInfo.mobile}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">微信：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" readonly
                                       value="${memberInfo.nickname}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">生日：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" readonly
                                       value="<fmt:formatDate value="${memberInfo.birthday}" pattern="yyyy-MM-dd" />">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">性别：</label>
                            <div class="col-sm-8">
                                <select class="form-control" name="sex" id="sex" disabled>
                                    <option value="0"
                                            <c:if test="${memberInfo.sex eq '0'}">selected</c:if> >未确定
                                    </option>
                                    <option value="0"
                                            <c:if test="${memberInfo.sex eq '1'}">selected</c:if> >男
                                    </option>
                                    <option value="0"
                                            <c:if test="${memberInfo.sex eq '2'}">selected</c:if> >女
                                    </option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">省-市-区：</label>
                            <div class="col-sm-2">
                                <input class="form-control" readonly value="${provinceName}">
                            </div>

                            <div class="col-sm-2">
                                <input class="form-control" readonly value="${cityName}">
                            </div>

                            <div class="col-sm-2">
                                <input class="form-control" readonly value="${areaName}">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">通讯地址：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" readonly
                                       value="${memberInfo.address}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">用户类型：</label>
                            <div class="col-sm-8">
                                <select class="form-control" name="isMemberLevel" id="isMemberLevel" disabled>
                                      <option value="0" <c:if test="${memberInfo.isMemberLevel eq '0'}">selected</c:if> >非会员</option>
                                      <option value="1" <c:if test="${memberInfo.isMemberLevel eq '1'}">selected</c:if>>会员</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">推荐人ID：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${memberInfo.recommenderId}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">充值额度(元)：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${memberInfo.allRechargeAmount}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">余额(元)：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${memberInfo.account}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">权益金(元)：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${memberInfo.giveAccount + memberInfo.frozenGiveAccount}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">会员等级：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="${memberInfo.memberLevel}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">注册时间：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="<fmt:formatDate value="${memberInfo.registerTime}" pattern="yyyy-MM-dd HH:mm:ss" />" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">最近登陆时间：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" value="<fmt:formatDate value="${memberInfo.lastLoginTime}" pattern="yyyy-MM-dd HH:mm:ss" />" readonly>
                            </div>
                        </div>








                        <div class="form-group" style="margin: 3rem 0 0;text-align: center">
                            <div class="col-sm-4 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    saveMemberRemark.init()
</script>
</body>
</html>
